/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.service;

import java.util.List;

import com.thinkgem.jeesite.modules.pub.dao.ScreenPointDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.pub.entity.AdMake;
import com.thinkgem.jeesite.modules.pub.dao.AdMakeDao;

/**
 * 广告定制Service
 * @author 开发
 * @version 2016-07-13
 */
@Service
@Transactional(readOnly = true)
public class AdMakeService extends CrudService<AdMakeDao, AdMake> {

	@Autowired
	private ScreenPointDao screenPointDao;

	public AdMake get(String id) {
		return super.get(id);
	}
	
	public List<AdMake> findList(AdMake adMake) {
		return super.findList(adMake);
	}
	
	public Page<AdMake> findPage(Page<AdMake> page, AdMake adMake) {

		return super.findPage(page, adMake);
	}
	
	@Transactional(readOnly = false)
	public void save(AdMake adMake) {
		super.save(adMake);
	}
	
	@Transactional(readOnly = false)
	public void delete(AdMake adMake,Boolean isRe) {
        adMake.setDelFlag(Boolean.TRUE.equals(isRe) ? AdMake.DEL_FLAG_NORMAL : AdMake.DEL_FLAG_DELETE);
		super.delete(adMake);
	}
	
}